package org.rency.crawler.domain.http;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.rency.common.utils.domain.Extension;
import org.rency.crawler.common.enums.HttpMethod;

/**
 * 名称:FetchHttpRequest
 * 描述:${TODO}
 *
 * @author:rency
 * @version:V1.0.0
 * @JDK 1.8
 * @since 2017/11/22 22:03
 */
public class FetchHttpRequest {

  private String                identity;

  private String                url;

  private String                host;

  private HttpMethod            httpMethod;

  private Extension             parameter;

  public String getIdentity() {
    return identity;
  }

  public void setIdentity(String identity) {
    this.identity = identity;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public String getHost() {
    return host;
  }

  public void setHost(String host) {
    this.host = host;
  }

  public HttpMethod getHttpMethod() {
    return httpMethod;
  }

  public void setHttpMethod(HttpMethod httpMethod) {
    this.httpMethod = httpMethod;
  }

  public Extension getParameter() {
    return parameter;
  }

  public void setParameter(Extension parameter) {
    this.parameter = parameter;
  }

  @Override
  public String toString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
  }
}
